<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>9-事件对象</title>
	</head>
	<body>
		<button>点击</button>
		<script type="text/javascript">
			var btn = document.querySelector('button');
			btn.onclick=function(e){
				console.log(event);
				//window.event IE6-8
				e = e||window.event;
				console.log(e);
				console.log(e.target);//button
				console.log(this);//button
				console.log(this===e.target)//true
			}
		</script>
	</body>
</html>
